﻿using NHibernate;
using SmartRS.com.vn.smartrs.dao;
using SmartRS.com.vn.smartrs.domain;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartRS.com.vn.smartrs.service
{
    public class FoodKindService : BaseService<FoodKind>
    {
        private static FoodKindService _foodKindService = new FoodKindService();

        private FoodKindService()
        { }

        public static FoodKindService getInstance()
        {
            return _foodKindService;
        }

        public IList<FoodKind> getFoodKindList()
        {
            return FoodKindDao.getInstance().getAll();
        }

        public FoodKind getFoodKindById(long id)
        {
            return FoodKindDao.getInstance().getById(id);
        }

    }
}
